---
title: Typing Animation
date: 2024-05-22
description: Characters appearing in typed animation
author: nyxb
published: true
---

<ComponentPreview name="typing-animation-demo" />


### Installation

<Tabs defaultValue="cli">

<TabsList>
  <TabsTrigger value="cli">CLI</TabsTrigger>
  <TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>
<TabsContent value="cli">

```bash
npx nyxb@latest add typing-animation
```

</TabsContent>

<TabsContent value="manual">

<Steps>

Copy and paste the following code into your project.

```text
components/ui/typing-animation.tsx
```

<ComponentSource name="typing-animation" />

</Steps>

</TabsContent>

</Tabs>

## Props

| Prop        | Type            | Description                                        | Default |
| ----------- | --------------- | -------------------------------------------------- | ------- |
| className   | string          | The class name to be applied to the component      |         |
| duration    | number          | Duration to wait in between each char type.        | 200    |
| text        | string          | Text to animate                                    | ""      |
